package com.gxa.park.core.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mincheung
 * @since 2022-07-18
 */
@TableName("tb_inspector")
@ApiModel(value = "Inspector对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Inspector implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增增长id")
    @TableId(value = "in_id", type = IdType.AUTO)
    private Integer inId;

    @ApiModelProperty("巡检员名字")
    @TableField("in_name")
    private String inName;

    @ApiModelProperty("巡检员手机号")
    @TableField("in_phone")
    private String inPhone;

    @ApiModelProperty("巡检员密码")
    @TableField("in_pwd")
    private String inPwd;

    @ApiModelProperty("盐值")
    @TableField("in_salt")
    private String inSalt;

    @ApiModelProperty("1 已上班 2 未上班")
    @TableField("in_status")
    private Integer inStatus;

    @ApiModelProperty("逻辑删除")
    @TableField("in_deleted")
    private Boolean inDeleted;

    @ApiModelProperty("所属城市")
    @TableField("in_city")
    private Integer inCity;

    @ApiModelProperty("所属区域")
    @TableField("in_area")
    private Integer inArea;

    @ApiModelProperty("路段")
    @TableField("in_street")
    private Integer inStreet;

    @ApiModelProperty("巡检员创建日期")
    @TableField("in_create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime inCreateTime;


}
